﻿using COUP.Core.Enums;

namespace COUP.Core.Networking
{
    public unsafe class StatusPacket : Packet
    {
        public StatusPacket(int Ident, int Value, StatusTypes StatusType)
        {
            Length = 28;
            Type = 1017;
            Int(Ident);
            Byte(1);
            SubType = StatusType;
            Int(Value, 16);
        }

        public StatusTypes SubType
        {
            set
            {
                Byte((byte)value, 12);
            }
        }
    }
}
